package com.yhd.controller;

import com.yhd.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 二十
 * @since 2021/12/3 12:25 上午
 */
@RestController
public class HelloController {

    @Autowired
    private HelloService helloService;
    @GetMapping("hello")
    public String hello(){
        return helloService.sayHello("二十");
    }
}
